package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.result.ListResult;
import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.CerCasUsersyncinfoServiceFallback;
import java.util.LinkedHashMap;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = CerCasUsersyncinfoServiceFallback.class)
public interface CerCasUsersyncinfoService {

    @PostMapping("/cdcerserver/v1/casusersync/listByPage")
    ListResult<Object> listByPage(PageData pageData);

    @PostMapping("/cdcerserver/v1/casusersync/queryAllUnInitSysuserCount")
    JsonObj queryAllUnInitSysuserCount(PageData pageData);

    @PostMapping("/cdcerserver/v1/dwsuser/findById")
    JsonObj findUserById(PageData pageData);

    @PostMapping("/cdcerserver/v1/dwsuser/addSysUser")
    JsonObj addSysUser(PageData pageData);

    @PostMapping("/cdcerserver/v1/dwsuser/updateSysUser")
    JsonObj updateSysUser(PageData pageData);

    @PostMapping("/cdcerserver/v1/dwsuser/syncTmpUserToSysUser")
    JsonObj syncTmpUserToSysUser(PageData pageData);
}
